<body class="body">
<div class="container">
  <h2><%= image_tag "ybyt04.png", size: "100x100" %>御邦医通体质辨识系统</h2>

  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>

    <% if flash[:alert].present? %>
      <div style="color: red;font-size:20px;">
        <%= flash[:alert]%>
      </div>
    <% end %>

    <div class="login">
        <%= f.label :邮箱 %>
        <%= f.email_field :email, autofocus: true , placeholder: "请输入邮箱" ,required: true%>
    </div>

    <div class="login">
      <%= f.label :密码 %>
      <%= f.password_field :password, autocomplete: "off" ,placeholder: "请输入登录密码" ,required: true%>
    </div>

    <% if devise_mapping.rememberable? -%>
      <div class="login">
        <%= f.check_box :remember_me %>
        <%= f.label :记住账户 %>
      </div>
    <% end -%>

    <div class="login">
      <div class="actions">
        <%= f.submit "登录" %>
        </div>
      <% end %></br>
      <%= render "devise/shared/links" %>
    </div>
  </div>
</body>
